<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" />
    <meta name="apple-touch-fullscreen" content="yes" />
    <meta name="format-detection" content="telephone=no" >
    <meta name="apple-mobile-web-app-capable" content="yes" >
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title>多人聊天室</title>
    <link rel="stylesheet" type="text/css" href="style.css" />

    <script src="http://192.168.1.52:3000/socket.io/socket.io.js"></script>
    <script src="jquery20.min.js"></script>
    <style type="text/css">
        li{display: block;height: 60px;line-height: 60px;border-bottom: solid 1px #ddd;position: relative}
        li .input{position: absolute;top: 30px;right: 10px}
        li a{display: block;padding: 0 10px}
    </style>
</head>
<body>
<div id="loginbox">
    <div style="width:260px;margin:200px auto;">
        请先输入你在聊天室的昵称
        <br/>
        <br/>
        <input type="text" style="width:180px;" placeholder="请输入用户名" id="username" name="username" />
        <input type="button" style="width:50px;" value="提交" onclick="CHAT.usernameSubmit();"/>
    </div>
</div>
<div id="chatbox" style="display:none;">
    <div style="background:#3d3d3d;height: 28px; width: 100%;font-size:12px;">
        <div style="line-height: 28px;color:#fff;">
            <span style="text-align:left;margin-left:10px;">Websocket多人聊天室</span>
                    <span style="float:right; margin-right:10px;"><span id="showusername"></span> | 
    				<a href="javascript:;" onclick="CHAT.logout()" style="color:#fff;">退出</a></span>
        </div>
    </div>
    <div id="doc">
        <div id="chat">
            <div id="message" class="message">
                <div id="list">
                 <ul>
                     <li><a href="javascript:;"><span> 第一个 </span></a><input type="checkbox" name="b1"  class="input" value="第一个" checked/></li>
                     <li><a href="javascript:;"><span> 第二个 </span></a><input type="checkbox" name="b1"  class="input" value="第一个" checked/></li>
                     <li><a href="javascript:;"><span> 第三个 </span></a><input type="checkbox" name="b1"  class="input" value="第一个" checked/></li>
                     <li><a href="javascript:;"><span> 第四个 </span></a><input type="checkbox" name="b1"  class="input" value="第一个"/></li>
                     <li><a href="javascript:;"><span> 第五个 </span></a><input type="checkbox" name="b1"  class="input" value="第一个" checked/></li>
                     <li><a href="javascript:;"><span> 第六个 </span></a><input type="checkbox" name="b1"  class="input" value="第一个"/></li>

                 </ul>
                </div>
                <div id="onlinecount" style="background:#EFEFF4; font-size:12px; margin-top:10px; margin-left:10px; color:#666;">
                </div>
            </div>
            <div class="input-box" style="position: fixed;bottom: 0;left: 0;right: 0">
                <div class="input">
                    <input type="text" maxlength="140" placeholder="请输入聊天内容，按Ctrl提交" id="content" name="content">
                </div>
                <div class="action">
                    <button type="button" id="mjr_send" onclick="CHAT.submit();">提交</button>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="./client.js"></script>
</body>
</html>